package com.huage.courseplatform.framework.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 分页参数排序列表参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="分页排序请求参数",description="分页排序请求参数")
public class OrderPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank
    @ApiModelProperty(value = "字段名",required = true)
    private String filedName;

    @NotBlank
    @ApiModelProperty(value = "排序方式",required = true)
    private String order;
}
